#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
#include <math.h>

int main() {
    int n = 0;
    scanf("%d", &n);
    int tmp = n;
    int count = 0;
    while (tmp)
    {
        count++;
        tmp /= 10;
    }
    int m = pow(10, count - 1);
    while (m)
    {
        tmp = n;
        printf("%d ", tmp / m % 10);
        m /= 10;
    }
    return 0;
}

